#include <coordinate.h>

Coordinate::Coordinate() : x(0), y(0) {}
Coordinate::Coordinate(int j, int i) : x(j), y(i) {}
Coordinate::Coordinate(const Coordinate &c) : x(c.x), y(c.y) {}
const bool Coordinate::operator==(const Coordinate &c) const {
	return ((c.x == x) && (c.y == y));
}

ostream& operator<<(ostream &out, const Coordinate &c) {
	out << (c.y + 1) << " " << (c.x + 1);
	return out;
}